import request from '@/utils/request'

// 获取收藏列表
export const getFavoritePage = (params) => {
  return request({
    url: '/favorite/page',
    method: 'get',
    params
  })
}

// 切换收藏状态
export const toggleFavorite = (data) => {
  return request({
    url: '/favorite/toggle',
    method: 'post',
    data
  })
}

// 检查是否已收藏
export const checkFavorite = (params) => {
  return request({
    url: '/favorite/check',
    method: 'get',
    params
  })
}
